include ../config.mk

cppflags := $(cppflags) -I../include

all: ifftshift.out cufft2c.out cuspirit.out spirit.out

%.out: %.o ../libmri.o
	$(c++) -o $@ $^ $(ldflags)

.PHONY: ../libmri.o
../libmri.o:
	$(MAKE) -C ../ libmri.o

%.o: %.cc
	$(c++) -o $@ -c $< $(c++flags) $(cppflags)

%.o: %.cu
	$(nvcc) -o $@ -c $< $(nvccflags) $(cppflags)


